package BanyuanClub.Study.Day0308.多线程.习题一;

import java.util.concurrent.Callable;

public class CalllableTwo implements Callable<Integer> {
    Text t = new Text();
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 1; i < t.getArr().length; ) {
            sum += t.getArr()[i];
            i += 2;
        }
        return sum;
    }
}
